/**
 * 
 *  @project Air Traff Monitor
 * 
 *  @author M.Emre ATASEVER <m.emre.atas@gmail.com>
 *  @author M.Burak ALKAN <mburakalkan@gmail.com>
 *  @author H.Burak KARAMIK <bkaramik@gmail.com>
 *
 *	`Air Traffic Monitor' is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef  INFOVIEW_INC
#define  INFOVIEW_INC

#include <QWidget>
#include <QProgressBar>
#include <QVBoxLayout>
#include <QDockWidget>
#include <QAction>
#include <QIcon>
#include <QLabel>

#include "kisock.h"



class QKismetInfoWnd  : public QWidget
{
	Q_OBJECT
public:
	QKismetInfoWnd(QKismetSocket *sock);
	~QKismetInfoWnd();
	void switchOrientation(bool vert);
private:
	QBoxLayout main;
	QBoxLayout bars;
	QBoxLayout *powerlay,*qualitylay,*noiselay;
	QVBoxLayout card;
	
	QProgressBar powerbar,qualitybar,noisebar;
	QLabel networks,packets,crypt,weak,noise,dropped,rate,signal;
	QLabel powerlab,qualitylab,noiselab;
	QKismetSocket *socket;
	bool vertical;

public slots:
	void infoInfo(iInfo info);



};

class QKismetInfoDock : public QDockWidget
{
	Q_OBJECT
public:
	QKismetInfoDock(QKismetSocket* sock);
	~QKismetInfoDock();

	QKismetInfoWnd infownd;
public slots:
	void locationChanged(Qt::DockWidgetArea area);
};



#endif
